<?php

/**
 * 通用类库
 * @author 咸洪伟
 * @version 0.0
 * @package njsystem
 * @subpackage application/libraries
 */
class Front
{

	private $_CI;

	function __construct() {
		$this->_CI = & get_instance();
		
	}

	
	/**
	 * 侧栏
	 * @param unknown_type $pid
	 */
	public function left($data=array()) {
		$attributes['notice_type']=4;
		$search['attributes'] = $attributes;
		$total = $this->_CI->notice_model->total($search);
		$data['total'] = $total;
		$per_page = 8;
		$this->_CI->load->library('pagination');
		$search['limit']=array('persize'=>$per_page,'offset'=>$this->_CI->pagination->get_cur_offset());
		$notice_data = $this->_CI->notice_model->all($search);
		$data['notice_data_3'] = $notice_data;
		$str = $this->_CI->load->view_part( 'front/common/left', $data );
	}

}
